<?php
/** $Id: default_form.php 11917 2009-05-29 19:37:05Z ian $ */
	defined( '_JEXEC' ) or die( 'Restricted access' );
	$session = JFactory::getSession();
	$app = JFactory::getApplication();
	$template = JURI::base() . 'templates/' . $app->getTemplate();
?>
<div id="header">
  <div id="w-header">
    <div class="logo"><a href="index.php">Forside</a> </div>
    <!--.logo-->
     {module login menu}    
    <!--.nav-top-1-->
    <div class="clear"></div>
    <div class="main-nav">
      {module main menu}
    </div>
    <!--.main-nav-->
    <div class="clear"></div>
  </div>
  <!--#w-header--> 
</div>
<!--#header-->

<div id="main">
  <div id="w-main">
    <div id="main-left">
	<div class="left-find"></div>
	<div class="right-find"></div>
		<div class="find">
			{module search}
		</div> 
      <!--.find-->
      <div class="clear"></div>
      <div class="infomation">
		<?php $article = JUtility::getArticle(15); ?>
        <h2><a href="#"><?php echo $article->title; ?></a></h2>
        <?php echo $article->introtext; ?>
      </div>
      <!--.infomation--> 
    </div>
    <!--#main-left-->
    <div id="main-right2">
     <div id="get-offer-page">
		<?php //var_dump($this->rows);die; ?>
		
        <div class="order">
          <div class="title">ORDRER</div><!--.title-->
		  <?php if(empty($this->items)) :?>
			<p><?php echo JText::_("Intet resultat fundet!"); ?></p>
		  <?php else: ?>
			  <?php foreach($this->items as $item) : ?>
			  <div class="order-item">
				<div class="order-item-top"></div>
				<!--.order-item-top-->
				<div class="order-item-mid">
					<div class="order-info-left">
					  <h3><a href="<?php echo JRoute::_('index.php?option=com_jobs&view=eventdetail&eventid='.$item->id);?>"><?php echo $item->title; ?></a></h3>
					  <p><?php echo JHTML::_('string.truncate', ($item->description), 180); ?></p>
				  </div><!--.order-info-left-->
				  <div class="order-info-right">
					<div class="num-guests">
						<img src="<?php echo $template; ?>/images/icon-people.png" width="18" height="18" alt="">
						<p>Antal gæster: <span><?php echo $item->guests; ?></span></p>
					</div><!--.num-guests-->
					<div class="address-info">
						<img src="<?php echo $template; ?>/images/icon-home.png" width="18" height="18" alt="">
						<p><span><?php echo $item->address; ?></span></p>
					</div><!--.address-info-->
					<div class="timer">
						<img src="<?php echo $template; ?>/images/icon-timer.png" width="18" height="18" alt="">
						<p><span><?php  echo JFactory::getDate($item->deadline)->toFormat('%Y-%d-%m'); ?></span></p>
					</div><!--.timer-->
				  </div><!--.order-info-right-->
				</div>
				<!--.order-item-mid-->
				<div class="order-item-bottom"></div>
				<!--.order-item-bottom--> 
			  </div>
			 <?php endforeach; ?>
          <!--.order-item--> 
        </div>
        <!--.order--> 
        <div class="move-top"><a href="#top"><img src="<?php echo $template; ?>/images/move-top.png" width="23" height="21" alt=""></a></div><!--.move-top-->
		<?php endif; ?>
      </div>
      <!--.three-step--> 
    </div>
    <!--#main-right--> 
  </div>
  <!--#w-main--> 
</div>
<!--#main-->
<div class="clear"></div>
<div id="contact">
  <div id="w-contact">
    <div class="left-con">
      <div class="left-con-top"></div>
      <!--left-con-top-->
      <div class="left-con-mid">
        <div class="contact-con">
		<?php $article = JUtility::getArticle(17); ?>
          <h2><a href="#"><?php echo $article->title; ?></a></h2>
          <?php echo $article->introtext; ?>
        </div>
        <!--.contact-con-->
        <div class="contact-con contact-con2">
			<?php $article = JUtility::getArticle(18); ?>
			<h2><a href="#"><?php echo $article->title; ?></a></h2>
			<?php echo $article->introtext; ?>
        </div>
        <!--.contact-con--> 
      </div>
      <!--left-con-mid-->
      <div class="left-con-bottom"></div>
      <!--left-con-bottom--> 
    </div>
    <!--.left-con-->
    
    <div class="address">
		<?php $article = JUtility::getArticle(16); ?>
		<h2><?php echo $article->title; ?></h2>
		<?php echo $article->introtext; ?>
    </div>
    <!--address--> 
    
    <div class="contact-form">
		{module kontakt}
    </div><!--.contact-form-->
  </div>
  <!--w-contact--> 
</div>
<!--#contact-->
<div class="clear"></div>
<div id="copyright">
	<div id="w-copyright">
		{module footer}
	</div>
</div>
<!--#copyright-->